﻿using Windows.Service.Share;

namespace Windows.WorkFlow.Service
{
    public interface IFormService
    {
        /// <summary>
        /// 获取所有表单基础资料
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<FormResponse>> GetBasicForms();
        /// <summary>
        /// 表单视图
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<PageResponse<FormResponse>> Query(PageRequest<FormRequest> request);
        /// <summary>
        /// 获取id的表单详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<FormResponse> Detail(int id);
        /// <summary>
        /// 表单保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(FormSaveRequest request);
        /// <summary>
        /// 表单删除
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Remove(IdsRequest request);
    }
    
}
